/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('ims_crl_tpshop_delivery', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    uniacid: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    delivery_id: {
      type: DataTypes.STRING(20),
      allowNull: false,
      defaultValue: ''
    },
    delivery_name: {
      type: DataTypes.STRING(20),
      allowNull: false,
      defaultValue: ''
    },
    service_type: {
      type: DataTypes.INTEGER(4),
      allowNull: false,
      defaultValue: '0'
    },
    service_name: {
      type: DataTypes.STRING(20),
      allowNull: false,
      defaultValue: ''
    },
    can_use_cash: {
      type: DataTypes.INTEGER(1),
      allowNull: false,
      defaultValue: '0'
    },
    can_get_quota: {
      type: DataTypes.INTEGER(1),
      allowNull: false,
      defaultValue: '0'
    },
    cash_biz_id: {
      type: DataTypes.STRING(20),
      allowNull: false,
      defaultValue: ' '
    },
    express_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    customer_name: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    customer_pwd: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    month_code: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    send_site: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    send_name: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    create_time: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    update_time: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      defaultValue: '0'
    },
    delete_time: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      defaultValue: '0'
    }
  }, {
    tableName: 'ims_crl_tpshop_delivery'
  });

  Model.associate = function() {

  }

  return Model;
};
